# 创建项目
project(sqlTest)
# 源文件目录
aux_source_directory(./src SRCS)
#指定头文件目录
include_directories("usr/include/mysql")
#指定库目录(就是从哪里加载库)
link_directories("/usr/lib/x86_64-linux-gnu")

set(MYSQL_LIBS 
    mysqlclient pthread z m rt atomic ssl crypto dl
    )

#生成.exe
add_executable(${PROJECT_NAME} ${SRCS})

#引入库
target_link_libraries(${PROJECT_NAME} ${MYSQL_LIBS})